/**
 * @望京、电子城、华贸服务
 * 
 * */
var url=document.URL;
var commname;
var dzc_service;
var ssqy = "HM";
var cnt;
var dataurl = "http://113.140.80.242:8090/iserver/services/data-BJPC/rest/data";
var fwurl = requestUrl();
var imgurl = getImgUrl();
var center;
var lpheading;
var range1;
var tranheight;
var Rangeheight;
var pitchcsh;
var brochureId = "";
var buildid,hsid;
commname = getParams('name');
cnt = getParams('cnt');
buildid = getParams('buildid');
hsid = getParams('hsid');
houseid = getParams('houseid');
brochureId = getParams('brochureId');
if(commname == "华贸中心"||commname == "BJCY001"){
		//serviceaddress2("HM_PC");//6+12组合
		serviceaddress1("BJPC","HMZX","hmzx");
		center={x:116.47466421824433,y:39.90788091996372};
		lpheading = 340;
		range1 = 350;
		tranheight = 110;
		Rangeheight = 230;
		pitchcsh = -5.0;
}else if(commname == "金长安大厦"||commname == "BJCY002"){
	serviceaddress1("BJPC","JCA","jca");
	lpheading = 60;
	range1 = 250;
	tranheight = 80;
	Rangeheight = 230;
	pitchcsh = -5.0;
	center={x:116.485425,y:39.896811};
}else if(commname == "sk大厦"||commname == "SK大厦"||commname == "BJCY003"){
	serviceaddress1("BJPC","SKDS","skds");
	center={x:116.450701,y:39.906145};
	lpheading = 210;
	range1 = 300;
	tranheight = 120;
	Rangeheight = 230;
	pitchcsh = -5.0;
}else if(commname == "艾维克大厦"||commname == "BJCY004"){
	serviceaddress1("BJPC","AWKDS","awkds");
	lpheading = 35;
	range1 = 200;
	tranheight = 90;
	Rangeheight = 150;
	pitchcsh = -5.0;
	center={x:116.456703,y:39.903801};
}else if(commname == "合生财富大厦"||commname == "BJCY005"){
	serviceaddress1("BJPC","HSCFGC","cyhecfgc");
	lpheading = 115;
	range1 = 150;
	tranheight = 60;
	Rangeheight = 90;
	pitchcsh = -5.0;
	center={x:116.472192,y:39.888942};
}else if(commname == "光华路soho二期"||commname == "光华路SOHO二期"||commname == "BJCY006"){
	serviceaddress1("BJPC","GHLSOHO","ghlsoho");
	center={x:116.445971,y:39.912624};
	lpheading = 340;
	range1 = 250;
	tranheight = 60;
	Rangeheight = 200;
	pitchcsh = -5.0;
}else if(commname == "海航实业大厦"||commname == "BJCY007"){
	serviceaddress1("BJPC","HHSYDS","hhsyds");
	lpheading = 150;
	center={x:116.458709,y:39.906142};
	range1 = 220;
	tranheight = 80;
	Rangeheight = 180;
	pitchcsh = -5.0;
}else if(commname == "佳龙大厦"||commname == "BJCY008"){
	serviceaddress1("BJPC","JLDS","jlds");
	lpheading = 150;
	center={x:116.454359,y:39.891488};
	range1 = 200;
	tranheight = 60;
	Rangeheight = 150;
	pitchcsh = -5.0;
}else if(commname == "京汇大厦"||commname == "BJCY009"){
	serviceaddress1("BJPC","JHDS","jhds");
	center={x:116.457091,y:39.905496};
	range1 = 250;
	tranheight = 90;
	Rangeheight = 200;
	lpheading = 0;
	pitchcsh = -5.0;
}else if(commname == "乐成中心"||commname == "BJCY010"){
	serviceaddress1("BJPC","LCZX","lczx");
	center={x:116.456556,y:39.893103};
	range1 = 280;
	tranheight = 90;
	Rangeheight = 230;
	lpheading = 40;
	pitchcsh = -25.0;
}else if(commname == "招商局大厦"||commname == "BJCY011"){
	serviceaddress1("BJPC","ZSJDS","zsjds");
	center={x:116.457185,y:39.906138};
	range1 = 300;
	tranheight = 110;
	lpheading = 290;
	Rangeheight = 230;
	pitchcsh = -5.0;
}
function serviceaddress1(servicename,name,domname){
	dzc_service={
			service:{//http://113.140.80.242:8090/iserver/services/3D-HM2/rest
				sceneAddress:"http://113.140.80.242:8090/iserver/services/3D-"+servicename+"/rest/realspace",//rest服务地址
				serverurl:"http://113.140.80.242:8090/iserver/services/data-BJPC/rest/data",//数据服务地址
				serverurlsys:"http://113.140.80.242:8090/iserver/services/spatialAnalysis-BJPC/restjsr/spatialanalyst",
				name:"HM"
			},
			serverurllayers : {
				Model : {
					'HM' : 'http://113.140.80.242:8090/iserver/services/3D-'+servicename+'/rest/realspace/datas/建筑6调色@'+name+'/config',
					'HM12':'http://113.140.80.242:8090/iserver/services/3D-'+servicename+'/rest/realspace/datas/建筑12调色@'+name+'/config',
					'LCZX':'http://113.140.80.242:8090/iserver/services/3D-'+servicename+'/rest/realspace/datas/lczx12@beijing20190426_9D/config'
				},
				Dom : {
					'HM' : 'http://113.140.80.242:8090/iserver/services/3D-'+servicename+'/rest/realspace/datas/'+domname+'@'+name
					
				},
				imageWhiteBase : 'http://113.140.80.242:8090/iserver/services/3D-BJPC/rest/realspace/datas/WhiteBase@BaseData',//
				terrain : "http://113.140.80.242:8090/iserver/services/3D-BJPC/rest/realspace/datas/%E5%8C%97%E4%BA%AC%E6%9C%9D%E9%98%B3_DEM@beijing20190426_9D",
				Household:"http://113.140.80.242:8090/iserver/services/3D-BJPC/rest/realspace/datas/Household@AttachData/config", //户
				floor :"http://113.140.80.242:8090/iserver/services/3D-HM2/rest/realspace/datas/Floor@AttachData/config"
			},
			layers:{
				Model : {
					'DZC' : 'Mod_DZC@20190404北京_WGS84',//DZC纹理模型
					'HM' : 'JZ6@20190412北京_WGS84',//HM纹理模型
					//'HM' : 'Model_HM@ModelData',//HM纹理模型
					'HM1' : 'Model_HM@ModelData',//HM纹理模型
					'WJ' : 'Mod_WJ@20190404北京_WGS84'//WJ纹理模型
				},
				Build : {
					'DZC' : 'Build_DZC@WhiteData',//DZC白模图层
					'HM' : 'Build_HM@WhiteData',//HM白模图层
					'WJ' : 'Build_WJ@WhiteData'//WJ白模图层
				},
				Dom : {
					
					'HM' : 'DOM_hm@BaseData',//hmDOM图层
				
				},
					layerhousehold:"Household@AttachData",//户图层
					layercommitry:"Community@AttachData",//小区图层
					layerunderside:"Underside@AttachData",//underside图层
					layerBase:"WhiteBase@BaseData"
			},
			datalayers:{
				Model : {
					'DZC' : 'ModelData:Mod_DZC',//DZC纹理模型
					//'HM' : 'ModelData:Mod_HM',//HM纹理模型
					'HM' : '20190412北京_WGS84:JZ6',//HM纹理模型
					'HM1' : 'ModelData:Model_HM',//HM纹理模型
					'WJ' : 'ModelData:Mod_WJ'//WJ纹理模型
				},
				Build : {
					'DZC' : 'WhiteData:Build_DZC',//DZC白模图层
					'HM' : 'WhiteData:Build_HM',//HM白模图层
					'WJ' : 'WhiteData:Build_WJ'//WJ白模图层
				},
				layerhousehold:"AttachData:Household",//户图层
				layercommitry:"AttachData:Community",//小区图层
				layerunderside:"AttachData:Underside"//underside图层
			}
	}
}
function serviceaddress2(servicename){
	dzc_service={
			service:{//http://113.140.80.242:8090/iserver/services/3D-HM2/rest
				sceneAddress:"http://113.140.80.242:8090/iserver/services/3D-"+servicename+"/rest/realspace",//rest服务地址
				serverurl:"http://113.140.80.242:8090/iserver/services/data-"+servicename+"/rest/data",//数据服务地址
				serverurlsys:"http://113.140.80.242:8090/iserver/services/spatialAnalysis-"+servicename+"/restjsr/spatialanalyst",
				name:"HM"
			},
			serverurllayers : {
				Model : {
					'HM' : 'http://113.140.80.242:8090/iserver/services/3D-'+servicename+'/rest/realspace/datas/JZ6@20190412北京_WGS84_1/config',
					'HM12':'http://113.140.80.242:8090/iserver/services/3D-'+servicename+'/rest/realspace/datas/JZ12@20190412北京_WGS84/config',
					
					//'HM' :'http://113.140.80.242:8090/iserver/services/3D-HM2/rest/realspace/datas/Mod_HM@ModelData/config'
				},
				Dom : {
					'HM' : "http://113.140.80.242:8090/iserver/services/3D-Android/rest/realspace/datas/底图_wgs84@20190412北京_WGS84"
					//'HM':"http://113.140.80.242:8090/iserver/services/3D-HM2/rest/realspace/datas/DOM_hm@BaseData"
				},
				imageWhiteBase : "http://113.140.80.242:8090/iserver/services/3D-HM/rest/realspace/datas/WhiteBase@BaseData",//
				terrain : "http://113.140.80.242:8090/iserver/services/3D-"+servicename+"/rest/realspace/datas/北京朝阳_DEM@beijing20190426_9D",
				Household:"http://113.140.80.242:8090/iserver/services/3D-HM/rest/realspace/datas/Household@AttachData/config", //户
				floor :"http://113.140.80.242:8090/iserver/services/3D-HM2/rest/realspace/datas/Floor@AttachData/config"
			},
			layers:{
				Model : {
					'DZC' : 'Mod_DZC@20190404北京_WGS84',//DZC纹理模型
					'HM' : 'JZ6@20190412北京_WGS84',//HM纹理模型
					//'HM' : 'Model_HM@ModelData',//HM纹理模型
					'HM1' : 'Model_HM@ModelData',//HM纹理模型
					'WJ' : 'Mod_WJ@20190404北京_WGS84'//WJ纹理模型
				},
				Build : {
					'DZC' : 'Build_DZC@WhiteData',//DZC白模图层
					'HM' : 'Build_HM@WhiteData',//HM白模图层
					'WJ' : 'Build_WJ@WhiteData'//WJ白模图层
				},
				Dom : {
					'DZC' :'DOM_dzc@BaseData',//dzcDOM图层
					'HM' : 'DOM_hm@BaseData',//hmDOM图层
					'WJ' : 'DOM_wj@BaseData'//wjDOM图层
				},
					layerhousehold:"Household@AttachData",//户图层
					layercommitry:"Community@AttachData",//小区图层
					layerunderside:"Underside@AttachData",//underside图层
					layerBase:"WhiteBase@BaseData"
			},
			datalayers:{
				Model : {
					'DZC' : 'ModelData:Mod_DZC',//DZC纹理模型
					//'HM' : 'ModelData:Mod_HM',//HM纹理模型
					'HM' : '20190412北京_WGS84:JZ6',//HM纹理模型
					'HM1' : 'ModelData:Model_HM',//HM纹理模型
					'WJ' : 'ModelData:Mod_WJ'//WJ纹理模型
				},
				Build : {
					'DZC' : 'WhiteData:Build_DZC',//DZC白模图层
					'HM' : 'WhiteData:Build_HM',//HM白模图层
					'WJ' : 'WhiteData:Build_WJ'//WJ白模图层
				},
				layerhousehold:"AttachData:Household",//户图层
				layercommitry:"AttachData:Community",//小区图层
				layerunderside:"AttachData:Underside"//underside图层
			}
	}
}
